package com.hmz.backend.api;

/**
 * 返回状态码
 */
public enum ReturnCode {
    RC200(200,"操作成功"),
    RC999(999,"服务器错误"),
    RC300(300,"操作不合法");
    private final int code; //自定义状态码
    private final String message; //状态码信息
    ReturnCode(int code,String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
